package org.example.system.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果对象封装
 * @author joey
 */
@Data
@ApiModel(value="分页PageDto")
public class PageIntVo<T> extends PageVo<T> {

    @ApiModelProperty(value = "总数量")
    private Integer total;

    public static PageIntVo create(Integer total, List list){
        PageIntVo vo = new PageIntVo();
        vo.setList(list);
        vo.setTotal(total);
        return vo;
    }
    public static PageIntVo create(){
        return new PageIntVo();
    }


}
